package com.sysmanage.permissions.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.sysmanage.common.tools.page.Pagination;
import com.sysmanage.framework.dao.hspring.DAOInterface;
import com.sysmanage.framework.service.BaseService;
import com.sysmanage.permissions.dao.JobsDao;
import com.sysmanage.permissions.model.Jobs;
import com.sysmanage.permissions.model.Systems;
import com.sysmanage.permissions.service.IJobsService;

@Service
@Transactional
public class JobsService extends BaseService<Jobs> implements IJobsService {

	@Autowired
	private JobsDao jobsDao;
	
	public Pagination getPageList(Jobs job,int page, int rows,String sort,String order) {
		return jobsDao.getPageList(job,page, rows,sort,order);
	}	
	public List<Jobs> getAll(){
		return jobsDao.getAll();
	}

	@Override
	protected DAOInterface<Jobs> getDAO() {
		return jobsDao;
	}
}
